package jicheng;

//定义学生类
//private关键字

public class student {
    //定义成员变量
    private  String name;
    private  int age;

    //定义set，get方法
    public void setName(String n){
        name = n;
    }
    public String  getName(){
        return name;
    }

    public void setAge(int a){
        age =a;
    }
    public int getAge(){
        return age;
    }

}
